package com.ecut.property_project.service.building;

import com.ecut.property_project.mapper.building.BuildingHeadMapper;
import com.ecut.property_project.model.building.BuildingHead;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BuildingHeadService{

    @Resource
    private BuildingHeadMapper buildingHeadMapper;

    
    public int deleteByPrimaryKey(String buildingId) {
        return buildingHeadMapper.deleteByPrimaryKey(buildingId);
    }

    
    public int insert(BuildingHead record) {
        return buildingHeadMapper.insert(record);
    }

    
    public int insertSelective(BuildingHead record) {
        return buildingHeadMapper.insertSelective(record);
    }

    public List<BuildingHead> selectAll(){ return buildingHeadMapper.selectAll(); }

    public List<BuildingHead> selectByPage(Integer page, Integer pageSize){return buildingHeadMapper.selectByPage(page,pageSize);}


    public BuildingHead selectByPrimaryKey(String buildingId) {
        return buildingHeadMapper.selectByPrimaryKey(buildingId);
    }

    
    public int updateByPrimaryKeySelective(BuildingHead record) {
        return buildingHeadMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BuildingHead record) {
        return buildingHeadMapper.updateByPrimaryKey(record);
    }

    public List<String> selectAllRegionByProject(){return buildingHeadMapper.selectAllRegionByProject();}

    public List<BuildingHead> selectBuildingByRegion(String region){return buildingHeadMapper.selectBuildingByRegion(region);}
    
}
